package com.icangya.domain;

import javax.persistence.*;

@Entity
@Table(name = "rw_user_address")
public class RwUserAddress {

    private long id;//id
    private long userid;//用户id
    private String openid;//用户openid
    private String userImg;//用户头像
    private String userNickName;//用户昵称
    private String sheng;//省
    private String shi;//市
    private String qu;//区
    private String zheng;//镇
    private String jiedao;//街道
    private String addOther;//自行补充地址
    private String youbian;//邮编
    private String address;//全地址
    private int status;//1：默认选择，0：默认不选择
    private String mobilePhone;//用户电话号码；
    private String remark;//备注


    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "userid")
    public long getUserid() {
        return userid;
    }

    public void setUserid(long userid) {
        this.userid = userid;
    }
    @Basic
    @Column(name = "openid")
    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    @Basic
    @Column(name = "user_img")
    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }
    @Basic
    @Column(name = "user_nick_name")
    public String getUserNickName() {
        return userNickName;
    }

    public void setUserNickName(String userNickName) {
        this.userNickName = userNickName;
    }

    @Basic
    @Column(name = "sheng")
    public String getSheng() {
        return sheng;
    }

    public void setSheng(String sheng) {
        this.sheng = sheng;
    }
    @Basic
    @Column(name = "shi")
    public String getShi() {
        return shi;
    }

    public void setShi(String shi) {
        this.shi = shi;
    }
    @Basic
    @Column(name = "qu")
    public String getQu() {
        return qu;
    }

    public void setQu(String qu) {
        this.qu = qu;
    }
    @Basic
    @Column(name = "zheng")
    public String getZheng() {
        return zheng;
    }

    public void setZheng(String zheng) {
        this.zheng = zheng;
    }

    @Basic
    @Column(name = "jiedao")
    public String getJiedao() {
        return jiedao;
    }

    public void setJiedao(String jiedao) {
        this.jiedao = jiedao;
    }
    @Basic
    @Column(name = "add_other")
    public String getAddOther() {
        return addOther;
    }

    public void setAddOther(String addOther) {
        this.addOther = addOther;
    }

    @Basic
    @Column(name = "youbian")
    public String getYoubian() {
        return youbian;
    }

    public void setYoubian(String youbian) {
        this.youbian = youbian;
    }
    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
    @Basic
    @Column(name = "mobile_phone")
    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }



    //////////////
    public RwUserAddress() {

    }

    public RwUserAddress(long userid, String openid, String userImg, String userNickName, String sheng, String shi, String qu, String zheng, String jiedao, String addOther, String youbian, String address, int status, String mobilePhone, String remark) {
        this.userid = userid;
        this.openid = openid;
        this.userImg = userImg;
        this.userNickName = userNickName;
        this.sheng = sheng;
        this.shi = shi;
        this.qu = qu;
        this.zheng = zheng;
        this.jiedao = jiedao;
        this.addOther = addOther;
        this.youbian = youbian;
        this.address = address;
        this.status = status;
        this.mobilePhone = mobilePhone;
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "RwUserAddress{" +
                "id=" + id +
                ", userid=" + userid +
                ", openid='" + openid + '\'' +
                ", userImg='" + userImg + '\'' +
                ", userNickName='" + userNickName + '\'' +
                ", sheng='" + sheng + '\'' +
                ", shi='" + shi + '\'' +
                ", qu='" + qu + '\'' +
                ", zheng='" + zheng + '\'' +
                ", jiedao='" + jiedao + '\'' +
                ", addOther='" + addOther + '\'' +
                ", youbian='" + youbian + '\'' +
                ", address='" + address + '\'' +
                ", status=" + status +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
